Component({
  data: {
    selected: 0,
    color: "#72777d",
    selectedColor: "#268EFF",
    list: [{
      pagePath: "pages/activeList/activeList",
      iconPath: "/images/22.png",
      selectedIconPath: "/images/21.png",
      text: "钓鱼点"
    }, {
      pagePath: "/index/index2",
      iconPath: "/image/icon_API.png",
      selectedIconPath: "/image/icon_API_HL.png",
      text: "接口"
    }]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({url})
      // this.setData({
      //   selected: data.index
      // })
    },
    toAdd(){
      wx.navigateTo({
        url: '/pages/addActive/addActive?action=add'
      })
    }
  }
})